#!/usr/bin/python
#-*- coding:utf-8 -*-

''
__author__  = 'CreGu'

import urllib2
import re

url = 'http://www.heibanke.com/lesson/crawler_ex00/'
response = urllib2.urlopen(url)
str = response.read()

pattern = re.compile('<h3>*?</h3>')
m = re.match(pattern, str)
print str
print m

s = '<h3>你需要在网址后输入数字32653</h3>'
m = re.match(pattern, s)
print m.group()